package EvaTCPL;

public class EvaTCPLmin extends EvaTCPLaexpression
{

  public EvaTCPLmin(EvaTCPLaexpression e1, EvaTCPLaexpression e2)
    {
      super(e1,e2);
    }

  /** Evaluate this arithmetic expression. */
  public double evaluate()
    {
      return Math.min(sons[0].evaluate(), sons[1].evaluate());
    }

  public String toString()
    {
      return "min("+sons[0].toString()+", "+sons[1].toString()+")";
    }

}
